package com.jzit168.library_retrofit.api

import com.jzit168.library_common.common.API.REFRESH
import com.jzit168.library_common.common.Constant
import com.jzit168.library_common.entity.data.TokenBean
import com.jzit168.library_retrofit.common.JzResult
import com.jzit168.library_utils.MMKVUtil
import retrofit2.Call
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 *@Desc:
 *@Author: Android Developer
 *@Date: 2020/10/15
 *
 **/
interface RetrofitService {

    @FormUrlEncoded
    @POST(REFRESH)
    fun refresh(
        @Field("refresh_token") refresh_token: String = MMKVUtil.getString(Constant.REFRESHTOKEN),
        @Field("deviceType") deviceType: Int = 1,
        @Field("applicationType") applicationType: Int = 1
    ): Call<JzResult<TokenBean>>
}